<?php 
header("Content-type:text/html;charset=utf-8");
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "http://api.weimi.cc/2/sms/send.html");
    curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($ch, CURLOPT_HEADER, FALSE);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, TRUE);
    curl_setopt($ch, CURLOPT_SSLVERSION , 3);
    curl_setopt($ch, CURLOPT_POST, TRUE);
    curl_setopt($ch, CURLOPT_POSTFIELDS, 'uid=mcMgQvzY4kFT&pas=c43cykq5&mob=15889795593&type=json&con='.urlencode('【微米网】您的验证码是：610912，3分钟内有效。如非您本人操作，可忽略本消息。'));
    $res = curl_exec( $ch );
    curl_close( $ch );
    var_dump($res);
 ?>